<template>
  <div class="header">
    <slot />
    <!-- slot标签用来展示插槽 -->
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  created() {},
  methods: {},
  components: {},
};
</script>

<style lang="scss">
.header {
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: olivedrab;
  color: #fff;
}
</style>
